<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" pageEncoding="UTF-8"
         contentType="text/html;charset=utf-8"%>
<%
    String basePath = request.getContextPath();
    String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+basePath+"/";
    request.setAttribute("path",path);
%>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script src="js/sidebar-menu.js"></script>
<link href="css/login.css" rel="stylesheet" media="all">
<link rel="shortcut icon" href="img/favicon.png">
<script>
    /////////////////////////侧边栏按钮
    $.sidebarMenu($('.sidebar-menu'))

    /////////////////////////创建全选反选函数
    //Delete TR
</script>

<style>
    .pointer{
        display: none;
    }

</style>

<div class="main_sidebar fl">
    <div class="sidebar">
        <ul class="sidebar-menu">
            <li class="header"></li>
            <c:if test="${type==1}">
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-goods"></i> <span>商品</span> <i
                            class="fa pull-right-up pull-right-down"></i>
                    </a>
                    <ul class="treeview-menu" style="display: none;">
                        <c:forEach items="${menuListP}"  var="items">
                        <li><a href="${path}${items.url}"><i class="fa fa-goodslist_${items.id}"></i>${items.menuName}</a></li>
                        </c:forEach>
                    </ul>
                </li>
            </c:if>

            <c:if test="${type1==1}">
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-member"></i>
                    <span>会员</span>
                    <i class="fa pull-right-up pull-right-down"></i>
                </a>
                <ul class="treeview-menu" style="display: none;">
                    <c:forEach items="${menuListU}"  var="items1">
                    <li><a href="${path}${items1.url}"><i class="fa fa-memberlist_${items1.id}"></i>${items1.menuName}</a></li>
                    </c:forEach>
                </ul>
            </li>
            </c:if>
            <c:if test="${type2==1}">
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-order"></i>
                    <span>订单</span>
                    <i class="fa pull-right-up pull-right-down"></i>
                </a>
                <ul class="treeview-menu" style="display: none;">
                    <c:forEach items="${menuListO}"  var="items2">
                    <li><a href="${path}${items2.url}"><i class="fa fa-orderlist_${items2.id}"></i>${items2.menuName}</a></li>
                    </c:forEach>
                </ul>
            </li>
            </c:if>
            <c:if test="${type3==1}">
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-system"></i>
                    <span>系统</span>
                    <i class="fa pull-right-up pull-right-down"></i>
                </a>
                <ul class="treeview-menu" style="display: none;">
                    <c:forEach items="${menuListS}"  var="items3">
                    <li><a href="${path}${items3.url}"><i class="fa fa-personnel_${items3.id}"></i>${items3.menuName}</a></li>
                    </c:forEach>
                </ul>
            </li>
            </c:if>
            <c:if test="${type4==1}">
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-system"></i>
                        <span>首页广告位</span>
                        <i class="fa pull-right-up pull-right-down"></i>
                    </a>
                    <ul class="treeview-menu" style="display: none;">
                        <c:forEach items="${menuListA}"  var="items4">
                            <li><a href="${path}${items4.url}"><i class="fa fa-personnel_${items4.id}"></i>${items4.menuName}</a></li>
                        </c:forEach>
                    </ul>
                </li>
            </c:if>
            <c:if test="${type5==1}">
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-system"></i>
                        <span>评论管理</span>
                        <i class="fa pull-right-up pull-right-down"></i>
                    </a>
                    <ul class="treeview-menu" style="display: none;">
                        <c:forEach items="${menuListC}"  var="items5">
                            <li><a href="${path}${items5.url}"><i class="fa fa-personnel_${items5.id}"></i>${items5.menuName}</a></li>
                        </c:forEach>
                    </ul>
                </li>
            </c:if>
            
            
            <li class="treeview">
                    <a href="${path}/themeList">
                        <i class="fa fa-system"></i>
                        <span>喀嗒专栏</span>
                    </a>
                </li>
                
                
                
        </ul>
    </div>
</div>
